]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Clean up and consolidate code for tween completion
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 2 Oct 2012 22:17:16 +0000 (19:17 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 6 Oct 2012 19:07:52 +0000 (16:07 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=685341

js/ui/messageTray.js

index 5e92141832b58e61ba033c2099c9877a0b47d58c..982940abe5529fb8586ac5030f7b56017ee8222b 100644 (file)
@@ -2141,17 +2141,9 @@ const MessageTray = new Lang.Class({
     },
 
     _hideDesktopClone: function(now) {
-        if (now) {
-            this._desktopClone.destroy();
-            this._desktopClone = null;
-            this._desktopCloneState = State.HIDDEN;
-            this._bottomMonitorGeometry = null;
-            return;
-        }
-
         this._tween(this._desktopClone, '_desktopCloneState', State.HIDDEN,
                     { y: 0,
-                      time: ANIMATION_TIME,
+                      time: now ? 0 : ANIMATION_TIME,
                       transition: 'easeOutQuad',
                       onComplete: Lang.bind(this, function() {
                           this._desktopClone.destroy();